package filters;

import java.awt.Point;

import org.newdawn.slick.util.Log;

public class FilterEvent extends Filter {
	
	public FilterEvent(String file320) {
		super(file320);
	}
	
	@Override
	/**
	 * Vrai si event
	 */
	public Object check320(int x1,int y1,int x2,int y2){
		Point p = new Point(x1,y1);
		try{
			return file320.getRGB(p.x,p.y);
		}catch(Exception e){
			Log.error("Test hors limite " + p);
			return false;
		}
	}
}
